package com.jiazhong.mingxing.boot.boot09.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@Slf4j
@RequestMapping("/second")
public class SecondController {

    @GetMapping("/a")
    public String a() {
        log.info("This is SecondController`a method!");
        return "This is SecondController`a method!";
    }

    @GetMapping("/b")
    public String b() {
        log.info("This is SecondController`b method!");
        return "This is SecondController`b method!";
    }
}
